package com.github.shuaidd.model.dto;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import java.util.List;

/**
 * 描述 任务节点
 *
 * @author ddshuai
 * @date 2020-08-08 15:30
 **/

@Data
@XmlAccessorType(XmlAccessType.FIELD)
public class TaskDTO {

    @XmlAttribute(name = "id")
    private String id;

    @XmlAttribute(name = "name")
    private String name;

    @XmlAttribute(name = "camunda:assignee")
    private String assignee;

    /**
     * 流入的线
     */
    @XmlElement(name = "bpmn:incoming")
    private List<String> incoming;

    /**
     * 流出的线
     */
    @XmlElement(name = "bpmn:outgoing")
    private List<String> outs;

    /**
     * 默认流向
     */
    @XmlAttribute(name = "default")
    private String defaultFlow;

    @XmlElement(name = "bpmn:extensionElements")
    private ExtensionElementDTO extensionElement;
}
